<div id="tabs">
	<ul>
        <li id="current"><?php echo $this->Html->link(__('Giao chỉ tiêu tháng', true), array('controller' => 'zthangs', 'action' => 'chitieucn',$donvi)); ?> </li>
        <li><?php echo $this->Html->link(__('Giao chỉ tiêu tháng mới', true), array('controller'=>'kehoaches','action' => 'add',$donvi)); ?></li>
	</ul>
</div>
<div class="zthangs">
	<h2><?php __('Chỉ tiêu tháng của '.$tendv[0]['donvis']['tendv']);?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('Tháng');?></th>
			<th><?php echo $this->Paginator->sort('Ngày bắt đầu');?></th>
			<th><?php echo $this->Paginator->sort('Ngày kết thúc');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($zthangs as $zthang):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $zthang['Zthang']['id']; ?>&nbsp;</td>
		<td><?php echo $zthang['Zthang']['thoigian_id']; ?>&nbsp;</td>
		<td><?php echo $zthang['Zthang']['donvi_id']; ?>&nbsp;</td>
		<td><?php echo $zthang['Zthang']['idthoigian']; ?>&nbsp;</td>
		<td><?php echo $zthang['Zthang']['tentg']; ?>&nbsp;</td>
		<td><?php echo $zthang['Zthang']['ngaybd']; ?>&nbsp;</td>
		<td><?php echo $zthang['Zthang']['ngaykt']; ?>&nbsp;</td>
		<td class="actions">
            <?php echo $this->Html->link(__('Chỉ tiêu tháng', true), array('controller'=>'chitieudvs','action' => 'hienchitieu', $zthang['Zthang']['id'])); ?>
			
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
